/*golf.cpp

*/
#include "golf.h"
#include <iostream>
#include <cstring>
using namespace std;
Golf::Golf(const char* name, int hc)
{
	strncpy(fullname, name,Len);
	handicap = hc;
}
Golf::Golf()
{
	char t_name[Len];
	int  t_handicap;
	cout << "Please enter the fullname of player:";
	cin.getline(t_name, Len);
	cout << "Please enter the handicap of player:";
	cin >> t_handicap;
	cin.get();
	*this = Golf(t_name, t_handicap);
}
void Golf::sethandicap(int hc)
{
	handicap = hc;
}
void Golf::showgolf()
{
	cout << "Information:" << endl;
	cout << "Name: " << fullname << endl;
	cout << "handicap: " << handicap << endl;
}
